//
//  MealBuilder.swift
//  BuilderPattern
//
//  Created by 好米有易 on 2017/12/14.
//  Copyright © 2017年 好米有易. All rights reserved.
//

import UIKit

class MealBuilder {

    public func prepareVegMeal() -> Meal {
        
        let meal: Meal = Meal();
        
        meal.addItem(item: VegBurger());
        
        meal.addItem(item: Coke());
        
        return meal
    }
    
  
    
    public func prepareNonVegMeal() -> Meal {
        
        let meal: Meal = Meal()
        
        meal.addItem(item: ChickenBurger())
        
        meal.addItem(item: Pepsi())
        
        return meal;
        
    }
    
}
